import util
import trinity
import graphicWrappers

class WodBuildingRes(object):
    __guid__ = 'graphicWrappers.WodBuildingRes'

    @staticmethod
    def Wrap(triObject, resPath):
        returnObject = trinity.WodBuilding()
        returnObject.buildingResPath = resPath
        return WodBuilding.Wrap(returnObject, resPath)




class WodBuilding(util.BlueClassNotifyWrap('WodBuilding'), graphicWrappers.TrinityTransformMatrixMixinWrapper):
    __guid__ = 'graphicWrappers.WodBuilding'

    @staticmethod
    def Wrap(triObject, resPath):
        WodBuilding(triObject)
        triObject.AddNotify('transform', triObject._TransformChange)
        return triObject



    def AddToScene(self, scene):
        scene.AddBuildingToScene(self)



    def RemoveFromScene(self, scene):
        scene.RemoveBuildingFromScene(self)



    def _TransformChange(self, transform):
        self.OnTransformChange()



    def OnTransformChange(self):
        return 




